package de.tabiteuea.dbAccess;

import java.sql.ResultSet;


/**
 * Object which holds information of db respondings 
 * @author Erik Schreiber
 */
public class DBResponseObject {
	
	private ResultSet rs;
	private String tableName;
	
	/**
	 * Constructor without parameters
	 */
	public DBResponseObject(){
		
	}
	
	/**
	 * Constructor with parameters
	 * @param rs the ResultSet of a query
	 * @param tableName the name of the queried table
	 */
	public DBResponseObject(ResultSet rs, String tableName){
		
		this.rs = rs;
		this.tableName = tableName;		
	}

	public ResultSet getRs() {
		return rs;
	}

	public void setRs(ResultSet rs) {
		this.rs = rs;
	}

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}
}
